﻿@using Microsoft.Ajax.Utilities
@model IEnumerable<DevWeb.Biztalk.DeploymentSettings.WebUI.Models.IntegrationVersionSettingsViewModel>

@{
    ViewBag.Title = "Version Settings";
}

<h2>Parameter overview</h2>
@if (Model.Count() > 0)
{
    var integrationVersionViewModel = Model.FirstOrDefault();

    <p>Integration Name: @integrationVersionViewModel.IntegrationName</p>
    <p>Integration Version: @integrationVersionViewModel.Version</p>
    <p>ProductId: @integrationVersionViewModel.ProductId</p>
    <p>
    
    </p>
}
@Html.ActionLink("Create New Parameter", "Create", new {id =ViewBag.id})


<div class="table-responsive">
    <table class="table-striped table-hover">
        <tr>

            <th class="col-md-5">
                @Html.DisplayNameFor(model => model.FirstOrDefault().ParameterName)
            </th>
            
            <th class="col-md-1"></th>


        </tr>

        @foreach (var item in Model)
        {
            <tr>


                <td>
                
                    <i> @Html.DisplayFor(modelItem => item.ParameterName)</i>
               
                </td>
                

                <td style="padding-left:20px">
                    <p>

                        @Html.ActionLink("Edit", "Edit", new { id = item.Id }, new { @class = "btn btn-info btn-xs" })
                        @Html.ActionLink("Delete", "Delete", new { id = item.Id }, new { @class = "btn btn-danger btn-xs" })
                        @Html.ActionLink("Environment Values", "ParametersValues", new { id = item.Id }, new { @class = "btn btn-default btn-xs" })
                      </p>






                </td>
            </tr>
        }

    </table>

</div>






